#include "DVPP_VPC.h"



int main()
{
    int len = 1280 * 1024 * 3 / 2;
    FILE *VL;
    VL = fopen("../1280_1024_VL.yuv", "rb");
    unsigned char *VL_buff = (unsigned char*)malloc(len);
    fread(VL_buff, sizeof(unsigned char), len, VL);

    DVPP_VPC *instant = new DVPP_VPC();
    int ret = instant->dvppInit();

    //1、jpege
    aclError aclRet = instant->dvpp_jpege(VL_buff, len, 1280, 1024);

    //2、resize
    aclRet = instant->dvpp_resize(VL_buff, len, 1280, 1024, 640, 640);
    // aclRet = instant->dvpp_resize_jpege();

    //3、crop
    aclRet = instant->dvpp_crop(VL_buff, len, 1280, 1024, 0,  0, 640, 640);

    return 0;
}
